//
//  TabBarController.m
//  DoIt
//
//  Created by shengyan on 16/2/25.
//  Copyright © 2016年 shengyan. All rights reserved.
//

#import "TabBarController.h"
#import "TrainController.h"
#import "FindController.h"
#import "TrendsController.h"
#import "MyController.h"

@interface TabBarController ()

@end

@implementation TabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    //训练
    TrainController *trainVC = [[TrainController alloc]init];
    //发现
    FindController *findVC = [[FindController alloc]init];
    //动态
    TrendsController *trendsVC = [[TrendsController alloc]init];
    //我的
    MyController *myVC = [[MyController alloc]init];
    
    //tabBar标题
    trainVC.tabBarItem.title = @"训练";
    findVC.tabBarItem.title = @"发现";
    trendsVC.tabBarItem.title = @"动态";
    myVC.tabBarItem.title = @"我的";
    
    self.viewControllers = @[trainVC,findVC,trendsVC,myVC];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
